//    Copyright (C) Kherty.  All rights reserved.
namespace OpenLS.Spreadsheet.Expressions
{
    class BooleanConstantExpression : ConstantExpression
    {
        public BooleanConstantExpression(bool val)
        {
            _value = val;
        }
        private readonly bool _value;
        public bool BooleanValue
        {
            get { return _value; }
        }
        public override string GetText(TextContext context)
        {
            if (BooleanValue) return "TRUE"; return "FALSE";
        }
        public override object Value
        {
            get { return BooleanValue; }
        }

    }
}
